/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

@import url('_config.less');

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    line-height: 1.5;
    font-size: 18px;
    position: relative;
    color: #777;
    background: #fff;
    .font();
}
a {
    color: @siteColor;
}
h1,h2,h3,h4,h5 {
    color: @siteColor;
    line-height: 1.3;
}
h1 {
    .headingFont();
}
h2,h3,h4,h5 {
    .subHeadingFont();
}

.header-inner, .nav-inner, footer, .reviews-inner, .content-block, .video-layer-inner {
    max-width: @siteWidth;
}


/* ==========================================================================
   Header & Nav
   ========================================================================== */
header {
    position: relative;
    height: 700px;
    background: #333;
    overflow: hidden;
    .logo {
        background: url(@logoBigUrl) no-repeat center;
        width: @logoBigWidth;
        height: @logoBigHeight;
        .retina(@logoBigUrl2x, @logoBigWidth);
        display: inline-block;
        margin-top: 200px;
    }
    .slogan {
        font-size: 50px;
        .headingFont();
        margin: 40px 0;
        font-weight: 100;
    }
    .open-video {
        .headingFont();
        font-size: 35px;
        font-weight: 100;
        a {
            display: inline-block;
            padding-left: 70px;
            background: url(../i/play.png) no-repeat left;
            .transition(200ms);
            opacity: 1;
            text-decoration: none;
            color: #fff;
            cursor: pointer;
            &:hover{
                opacity: 0.8;
            }
            .retina('../i/play@2x.png', 50px);
        }
    }

}
.header-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: url(../i/bg.jpg) no-repeat center 0px;
    -webkit-background-size: cover;
    background-size: cover;
    height: 700px;
}

.header-inner {
    position: relative;
    z-index: 5;
    margin: 0 auto;
    height: 100%;
    color: #fff;
    text-align: center;
}
.video-layer {
    position: absolute;
    z-index: 1000;
    background: #222;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    left: -100%;
    .transition(600ms);
    &.opened {
        .transform(translate(100%,0));
    }
    .no-csstransforms & {
        &.opened {
            left: 0%;
        }
    }
    .close-video {
        position: absolute;
        bottom: 40px;
        width: 100%;
        height: 31px;
        line-height: 31px;
        text-align: center;
        a {
            padding-left: 40px;
            font-weight: 100;
            background: url(../i/close.png) no-repeat left top;
            display: inline-block;
            color: #fff;
            text-decoration: none;
            .retina('../i/close@2x.png', 30px);
            .transition(300ms);
            opacity: 1;
        }
        a:hover {
            opacity: 0.6;
        }
    }
    iframe {
        display: block;
        width: 100%;
        height: 100%;
        /*margin-left: -45%;*/
        box-shadow: 0px 0px 50px #000;
    }
    .video-layer-inner {
        position: relative;
        height: 70%;
        top: 10%;
        margin: 0 auto;
    }
}
    
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 50px;
    background: #000;
    background: rgba(0,0,0,0.5);
    z-index: 1000;

    ul {
        float: right;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    li {
        float: left;
        margin-left: 40px;
        line-height: 50px;
    }
    a {
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        .transition(200ms);
        opacity: 1;
    }
    a:hover {
        opacity: 0.8;
        
    }
    .logo {
        background: url(@logoUrl);
        width: @logoWidth;
        height: @logoHeight;
        .retina(@logoUrl2x, @logoWidth);
        cursor: pointer;
        float: left;
        margin-top: 25px - @logoHeight/2;
    }


}
.nav-inner {
    margin: 0 auto;
}
.content-block {
    margin-left: auto;
    margin-right: auto;
}
/* ==========================================================================
   Download
   ========================================================================== */
#download {
    margin-top: 90px;
    margin-bottom: 90px;
    .app-icon {
        float: left;
        width: 250px;
        height: 250px;
        background: url(../i/icon.png);
        -webkit-background-size: 100% auto;
        background-size: 100% auto;
        .retina('../i/icon@2x.png', 100%);
    }
    .info {
        margin-left: 290px;
    }
    h1 {
        font-size: 50px;
        margin: 0;
        line-height: 1.2;
    }
    .slogan {
        font-size: 32px;
        color: #333;
        .subHeadingFont();
        line-height: 1.3;
        margin: 15px 0;
    }
    .appstore-link {
        background: url(../i/appstore.png);
        width: 300px;
        height: 90px;
        display: block;
        background-repeat: no-repeat;
        -webkit-background-size: 100% 100%;
        background-size: 100% 100%;
        .retina('../i/appstore@2x.png', 100%);
    }
}
/* ==========================================================================
   About
   ========================================================================== */
#about {
    margin-top: 90px;
    margin-bottom: 50px;
    h2 {
        font-size: 35px;
    }
    .info {
        margin-left: 520px;
    }
    .phones {
        float: left;
    }
    .phone {
        float: left;
        width: 312px;
        height: 657px;
        position: relative;
        z-index: 1;
    }
    .phone-bg {
        width: 312px;
        height: 657px;
        background: url(../i/iphone.png) no-repeat left top;
        position: relative;
        z-index: 10;
        .retina('../i/iphone@2x.png', 312px);
    }
    .shadow {
        background: url(../i/shadow.png);
        width: 315px;
        height: 9px;
        position: absolute;
        left: 50%;
        margin-left: -315px/2;
        bottom: -4px;
    }
    .phone-right {
        margin-left: -160px;
    }
    .swiper-container {
        width: 264px;
        height: 470px;
        position: absolute;
        left: 26px;
        top: 95px;
        z-index: 20;
    }
    .phone-left .swiper-container {
        -webkit-filter: blur(10px);
        -moz-filter: blur(10px);
        -ms-filter: blur(10px);
        filter: blur(10px);
        opacity: 0.8;
    }
    .swiper-wrapper {
        width: 10000px;
    }
    .swiper-slide {
        width: 264px;
        height: 470px;
        overflow: hidden;
        position: relative;
        .transition(300ms);
        img {
            width: 100%;
            display: block;
        }
    }

}
/* ==========================================================================
   Features
   ========================================================================== */
#features {
    margin-bottom: 30px;
    .feat {
        font-size: 15px;
        float: left;
        width: 33%;
        .borderBox();
        padding: 0 20px;
        margin-bottom: 20px;
    }
    .feat:nth-of-type(3n+1) {
        clear: both;
    }
    h2 {
        /*margin-top: 0;*/
        font-size: 35px;
        text-align: center;
    }
    h3 {
        color: #333;
        text-align: center;
        font-size: 31px;
        margin-top: 0;
    }
}
/* ==========================================================================
   Reviews
   ========================================================================== */
#reviews {
    background: @siteColor;
    color: #fff;
    max-width: none;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-bottom: 0;
    .reviews-inner {
        margin: 0 auto;
    }
    .review {
        width: 45%;
        float: left;
        text-align: center;
        margin: 30px 0;
    }
    .review:nth-child(2n) {
        float: right;
    }
    .review:nth-child(2n+1) {
        clear: both
    }
    .quote {
        font-size: 23px;
    }
    .star {
        display: inline-block;
        background: url(../i/star.png) no-repeat center;
        width: 50px;
        height: 50px;
        -webkit-background-size: 100% auto;
        background-size: 100% auto;
        .retina('../i/star@2x.png', 100%);
    }
}
/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    margin: 0 auto;
    a {
        text-decoration: none;
    }
    .social {
        padding: 50px 0;
        border-bottom: 1px solid #ccc;
        a {
            margin: 0 20px;
            display: inline-block;
            .transition(200ms);
        }
        a:hover {
            color: inherit;
        }
    }
    .copy {
        margin: 30px 0;
    }
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}